package com.ruoyi.wx.controller;


import com.ruoyi.wx.service.ISalarySlipWxService;
import com.ruoyi.wx.utils.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx")
@RequiredArgsConstructor
public class SalarySlipWxController {

    private final ISalarySlipWxService salarySlipService;


    /**
     * 查询员工工资
     * @param id
     * @return
     */
    @GetMapping("/salarySlip/{id}")
    public Result salarySlip(@PathVariable Long id){
        return Result.success(salarySlipService.selectSalary(id));
    }
}
